package com.ruoyi.comparison.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 同一条关联关系上的节点信息业务对象 task_relation_list
 *
 * @author ruoyi
 * @date 2023-11-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TaskRelationListBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;
    private String subjectId;
    /**
     * 开始节点Id
     */
    @NotBlank(message = "开始节点Id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String startNodeId;

    /**
     * 结束节点Id
     */
    @NotBlank(message = "结束节点Id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String endNodeId;

    /**
     * 关联关系
     */
    @NotBlank(message = "关联关系不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 关系描述
     */
    @NotBlank(message = "关系描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String labelText;


}
